package org.abio.XasML.reflect
{
	import org.abio.XasML.util.newInstance;
	
	public class ConstructorInfo
	{
		public function ConstructorInfo()
		{
		}
		
		internal var _owner:ClassInfo=null;
		public function get owner():ClassInfo{	return this._owner;}

		internal var parameter:Array=new Array();
		public function get parameters():Array{	return this.parameter;}
		
		public function invoke(...args):*{
			return (newInstance as Function).apply(null, new Array(this._owner.defination).concat(args)); 
		}
	}
}